package edu.kjxy.day02.t18;

/**
 * 功能:线程的优先级具有继承性，如果A线程启动B线程，则B和A的优先级一样。
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 15:45
 */
public class RunTest {
    public static void main(String[] args) {
        System.out.println("main thread begin priority= " + Thread.currentThread().getPriority());
//        Thread.currentThread().setPriority(6); //设置当前线程的优先级
        System.out.println("main thread end priority= " + Thread.currentThread().getPriority());
        MyThread thread = new MyThread();
        thread.start();
    }
}
